package com.spkj.srb.mybatisplus.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author spkj
 * @create 2022-06-06 16:45
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
public class User {
//    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @TableId(value = "id", type = IdType.AUTO)
    Long id;
    @TableField("name")
    String name;
    @TableField("age")
    Integer age;
    @TableField("email")
    String email;
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    LocalDateTime createTime;
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    LocalDateTime updateTime;
    @TableLogic
    @TableField("is_delete")
    Integer deleted;
}
